package com.meilai.project.dto.finance.invoice;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.base.PageReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class InvoiceApplySearchDTO extends PageReq {

    @ApiModelProperty("收款单位")
    private String bill_receipt_company;

    @ApiModelProperty("子公司id")
    private Long dept_id;

    @ApiModelProperty("发票类型id")
    private Long invoice_type_id;

    @ApiModelProperty("发票类型id")
    private Long invoice_category_id;

    @ApiModelProperty("开票开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate invoice_date_start;

    @ApiModelProperty("开票结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate invoice_date_end;

    @ApiModelProperty("开票金额最小值")
    private BigDecimal total_amount_min;

    @ApiModelProperty("开票金额最大值")
    private BigDecimal total_amount_max;

    @ApiModelProperty("是否是管理界面")
    private Boolean manage = false;

    @ApiModelProperty("用户id")
    private Long user_id;

    @ApiModelProperty("流程状态")
    private Integer flow_status;
}
